package dymnd;
import java.awt.Color;
import java.awt.Toolkit;
import java.util.Hashtable;

/*
 * Settings - Stores all preferences and defaults for program operation
 */

public class Settings extends Hashtable implements java.io.Serializable {
	static final long serialVersionUID = 3;
	
	private Settings()	{}
	
	public static Settings defaultSettings()	{
		Settings s = new Settings();
		
		s.put("username", System.getProperty("user.name"));
		
		//the number of layers currently in existance
		s.put("layerCount", new Integer(1));
		
		//canvas width and height
		s.put("canvasWidth", new Integer(500));
		s.put("canvasHeight", new Integer(500));
		
		//main painting window width and height
		s.put("mainWindowWidth", new Integer(700));
		s.put("mainWindowHeight", new Integer(700));
		
		//set the last directory. (May not work on windows...)
		s.put("lastDirectory", "/");
		
		//find the size of the screen, for later use...
		s.put("screenSize", Toolkit.getDefaultToolkit().getScreenSize());
		
		//the default host
		s.put("networkHost", "localhost");
		//default port
		s.put("networkPort", new Integer(5000));
		
		//default colors
		s.put("primaryColor", Color.black);
		s.put("secondaryColor", Color.white);
		
		//size of the layer dialog
		s.put("layerDialogWidth", new Integer(100));
		s.put("layerDialogHeight", new Integer(200));
		
		//location of layer dialog
		s.put("layerDialogX", new Integer(650));
		s.put("layerDialogY", new Integer(500));
		
		//the currently selected plugin...
		s.put("selectedPlugin", new Integer(0));
		
		s.put("toolDialogX", new Integer("550"));
		s.put("toolDialogY", new Integer("170"));
		
		s.put("layerIndex", new Integer(0));
		
		return s;
		
	}
}
